<%@ page import="cn.aloxc.stock.Fundstat" %>
<%@ page import="cn.aloxc.stock.context.SysContext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code:'fundstat.label', default:'Fundstat')}" />
        <title>${SysContext.FUND_PERIOD_TEXT[SysContext.FUND_PERIOD.indexOf(params.p)]}-${SysContext.FUND_ATYPE_TEXT[SysContext.FUND_ATYPE.indexOf(params.a)]}</title>
      <script src="${resource(dir:'')}/js/jquery-1.2.6.min.js"></script>
      <script src="${resource(dir:'')}/js/fundstat.js"></script>
    </head>
    <body>
        <g:render template="/action" model="[entityName:entityName]"/>    
        <div class="body9">
            <g:render template="menu" model="[params:params]"/>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list" style="border-width:1px; border-color:#FFA660; border-style:dashed; padding:0px; margin:0px; ">
              <table border=0  padding=0px  margin=0px>
                <tr border=0  padding=0px  margin=0px><td border=0  padding=0px  margin=0px>
                    <table>
                      <thead>
                          <tr>
                            <td>RK</td>
                          </tr>
                      </thead>
                      <tbody><g:each var="i" in="${(1..params.max)}"><tr class="${(i % 2) == 1 ? 'odd' : 'even'}"><td>${i}</td> </tr></g:each></tbody>
                    </table>
                  </td>
              <g:each in="${fundstatInstanceMapList}" var="fundstatInstanceList">
                <td border=0  padding=0px  margin=0px>
                <table border=0  padding=0px  margin=0px>
                    <thead>
                        <tr><td >${fundstatInstanceList.key}</td></tr>
                    </thead>
                    <tbody>
                    <g:each in="${fundstatInstanceList.value}" status="i" var="fundit">
                      <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"><td name="statdata_${fundit.code}" d="({code:'${fundit.code}',fund:'${fundit.fund}',percent:'${fundit.percent}',rank:'${fundit.rank}',atype:'${fundit.atype}',period:'${fundit.period}'})">${fundit.name}</td></tr>
                    </g:each>
                    </tbody>
                </table>  </td>
                </g:each>
                </tr>
                </table>
            </div>
        </div>

<div id="objload" class="hidden"></div>
    </body>
</html>
